package com.lemon.system.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 租户-菜单中间表持久层对象，对应数据库
 *
 * @author 李猛
 * @since 2024-02-11
 */
@Getter
@Setter
@ToString
@TableName("sys_tenant_menu")
public class TenantMenuPO implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键ID
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    //租户ID
    private Long tenantId;

    //菜单ID
    private Long menuId;

    //父ID
    private Long parentId;

    //菜单名称
    private String name;

    //图标地址
    private String icon;

    //排序
    private Byte seq;

    //树形菜单ID链
    private String treeLinkId;

    //创建人ID
    private String createBy;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //修改人ID
    private String updateBy;

    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //状态：1启用 0停用
    private Byte status;


}
